<?php
include('config.php');
//$sql = "select * from type";
$where = 1;
$keyword = isset($_POST['keyword']) ? trim($_POST['keyword']) : '';
if($keyword){
	$where .= " and guest_name like '%{$keyword}%'";
}
$result = $mysql->selectList('guest',$where);
if($result){
	foreach ($result as $k=>$v){
		echo '<label style="display:block;" ondblclick="dblCustomer('.$v['guest_id'].')" id="change_customer'.$v['guest_id'].'" onclick="select_guset_change_backgroud('.$v['guest_id'].')"><input type="radio"  name="radiobutton" value="'.$v['guest_name'].'"/>'.$v['guest_name'].'</label>';
	}
}